package com.ld.rightsSystem.service.inf;

import com.ld.rightsSystem.dto.TRoleDTO;
import com.ld.rightsSystem.exception.DBDataNotFoundException;
import com.ld.rightsSystem.pojo.TRole;
import com.ld.rightsSystem.vo.R;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author lhb
 * @since 2023-12-27
 */
public interface TRoleService {

    R addTRole(TRoleDTO sysRole);

    R editTRole(TRoleDTO sysRole) throws DBDataNotFoundException;

    R getTRoleList(int pageNum, int pageSize);

    R deleteTRoleById(Long id) throws DBDataNotFoundException;

    R checkFieldAvailable(String checkRoleName, String checkRoleCode);

    R findRoleInfoByRoleId(Long roleId) throws DBDataNotFoundException;
}
